﻿@model IEnumerable<CmsPage>
           
@{
    Layout = "~/admin/Templates/TelerikAdministration.cshtml";
}

@{
    ResFile = "cms_Pages";
    ViewBag.Title = _("Pages");
}

<h1 class="g-clear">
	<i class="b-icon b-icon_h b-icon_h_pages"></i>
	<span class="b-overflow">
	@_("Pages")
	<span class="b-intro-text">@_("The table below represents the structure of your site. Click on the page title to edit page content and other page details.")</span>
	</span>  
</h1>

<div id="TabStrip" class="t-widget t-tabstrip t-header">
	<ul class="t-reset t-tabstrip-items">
		<li class="t-item t-state-active">
			<a href="/admin/cmspage" class="t-link">@_("Pages")</a>			
		</li>
		<li class="t-item t-state-default">
			<a href="/admin/cmstemplate" class="t-link">@_("Templates")</a>			
		</li>
		<li class="t-item t-state-default">
			<a href="/admin/cmspagemetafields" class="t-link">@_("Page Metas")</a>			
		</li>		
	</ul>
	<div style="display: block;" id="TabStrip-1" class="t-content t-state-active">
		<div class="t-content-inner g-clear">
			<p class="clear-left">
			    <a class="b-button b-button_save" href="@Url.Action("add", "cmspage")">@_("Add a page")</a>
			</p>
			@{Html.RenderPartial("pagefilter", Model);}
			@{Html.RenderPartial("errorpanel");}
			
           
            @{Html.RenderPartial("pagegrid", new { Pages = Model, UseHeader = true }.ToExpando());}
			
			<dl class="legend">
				<dt class="legend__title">@_("Key for page type:")</dt>
				<dd class="legend__items">
					<dl>
						<dt class="legend__icon legend__icon_content"></dt>
						<dd class="legend__description">@_("Content Page Or Functional Page") <i>@_("- These pages contain user-editable content and/or modules")</i></dd>
						<!--dt class="legend__icon legend__icon_functional"></dt>
						<dd class="legend__description">@_("Functional Page") <i>@_("- These pages do not contain user-editable content")</i></dd-->
						<dt class="legend__icon legend__icon_placeholder"></dt>
						<dd class="legend__description">@_("Placeholder/Redirect Page") <i>@_("- Adds a link into the site structure, but these pages themselves do not contain content")</i></dd>
						<!--dt class="legend__icon legend__icon_custom"></dt>
						<dd class="legend__description">@_("Custom Page") <i>@_("- Pages contain custom content or data")</i></dd-->
					</dl>
				</dd>	
			</dl>			
		</div>
	</div>
</div>